package org.csmzxy.class2333;
//写一个判断水仙花数的函数
import java.util.Scanner;
public class Test1 {
    public static boolean water_flower(int a){
        int bai=a/100;
        int shi=a/10%10;
        int ge=a%10;
        if ((Math.pow(bai,3)+Math.pow(shi,3)+Math.pow(ge,3))==a){
            return true;
        }
        return false;
    }
    public static void main(String[] args){

        Scanner scanner=new Scanner(System.in);
        int a = scanner.nextInt();
        if (water_flower(a)){
            System.out.println(a+"是水仙花数");
        }else{
            System.out.println(a+"不是水仙花数");
        }

    }
}
